package com.ldzg.blockwatcher.config.tron;

/**
 * @author zhangyinhang
 */

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import static com.ldzg.blockwatcher.config.tron.TronProperties.CONFIG_PREFIX;

@Data
@Configuration
@ConfigurationProperties(prefix = CONFIG_PREFIX)
public class TronProperties {

    public static final String CONFIG_PREFIX = "config.tron";

    /**
     * TronGrid 提供的官方 HTTP API 接口地址，默认使用主网
     */
    private String tronGridUrl = "https://api.trongrid.io";

    /**
     * 波场 TRC20 USDT 合约地址，默认使用主网
     * TXLAQ63Xg1NAzckPwKHvzw7CSEmLMEqcdj
     */
    private String usdtContract = "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t";

    /**
     *  调用时设置APIKey,不然接口会限流
     *  测试使用：75b12ed2-f378-460b-9da0-f3adfd1f5d05
     */
    private String apiKey;
}
